﻿using Sample.Web.Dummy;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;

namespace Sample.Web.Controllers
{
  public class HomeServiceController : ApiController
  {
    readonly IDummyRepo _repo;
    public HomeServiceController(IDummyRepo repo)
    {
      _repo = repo;
    }
    // GET api/homeservice
    public IEnumerable<string> Get()
    {
      return new string[] { _repo.SayHello() };
    }

    // GET api/homeservice/5
    public string Get(int id)
    {
      return "value";
    }

    // POST api/homeservice
    public void Post([FromBody]string value)
    {
    }

    // PUT api/homeservice/5
    public void Put(int id, [FromBody]string value)
    {
    }

    // DELETE api/homeservice/5
    public void Delete(int id)
    {
    }
  }
}
